<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE HTML>
<html>
<head>

<title>My JSP 'uploadfile.jsp' starting page</title>
<link href="img/ico.ico" rel="shortcut icon">


<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery-min.js"></script>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

</head>

<body>
	<%@ include file="pagetop/pagetitle.jsp"%>



	<div style="padding-left: 15%;">

		<i class="icon-home"></i><a href="index.action">回主页</a>
		&gt;&gt;&gt;&gt;&gt; <a
			href="oneQuestion.action?questionId=${question.id}">${question.questionname}</a>&gt;&gt;&gt;&gt;&gt;
		上传文件
		<hr />
		<form action="thisfileForUpload.action" method="post"
			enctype="multipart/form-data">
			上传文件的文件名： <input type="text" name="files.filename" /> <input
				type="hidden" name="questionId" value="${question.id}" /> <br />
			文件地址：<input type="file" name="file" /><br /> <%--文件类型:<select
				name="filetypeId">
				<c:forEach var="filetype" items="${fileTypesList}">
					<option value="${filetype.id}">${filetype.name}</option>
				</c:forEach>
			</select>
		--%></form>
		<input type="submit" value="提交" />
	</div>
</body>

<script type="text/javascript">
	$(function() {
		$("input[type='submit']").click(function() {
			//alert("文件："+$("input[type='file']").val());
			//后台判断md5值

			$("form").submit();
			//alert("上传成功");
			//window.location.reload(true);
		});
	});
</script>
</html>
